home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 24
/
AMIGAplus Sonderheft 24 (2000)(Falke)(DE)[!].iso
/
Rexx
/
MakeIcons.pprx
< prev
next >
Wrap
Text File
|
1999-11-06
|
30KB
|
885 lines
/* Personal Paint Amiga Rexx script - Copyright © 1996, 1997 Cloanto Italia srl */
/* $VER: MakeIcons.pprx 1.2 */
/** ENG
This script creates icons for the picture and animation files in
the specified path. No icons are created or modified for unrecognized
types of files (e.g. texts or executable programs). The artwork files
are not modified or rewritten - only the icon files are.
The settings requester allows the user to set several parameters
which affect the creation of the icons:
- Icon Type: Default (default icon images), Picture (reduced thumbnail
pictures for image, brush, animation and anim-brush files), NewIcons+Def
(reduced thumbnail pictures in NewIcons format, the default images are
used for the standard icon image), NewIcons+Dot (reduced thumbnail pictures
in NewIcons format, a small "dot" standard image is used to save
disk space).
- File Type: Auto (picture files are saved as images or brushes, based
on their format), Image (picture files are saved as images, if possible),
Brush (picture files are always saved as brushes).
- Width: maximum width of the picture icons.
- Height: maximum height of the picture icons.
- Icon Palette: Standard (the first four and the last four Workbench
colors are used for Picture icons, and the standard 16 colors palette
is used for NewIcons), Best (all Workbench pens are used for Picture
icons, and the full original picture palette is used for NewIcons),
Standard (Gray) (same as Standard, but only gray shades are used), Best
(Gray) (same as Best, but only gray shades are used).
- Color Average: when this option is active, reduced picture icons
are generated with a color average algorithm. This improves the
quality, but slows down the creation of the icons.
- Animation Frame: First (the first frame is used for
the picture icons of animation/anim-brushes), Central (the
middle frame is used), Last (the last frame is used), Manual Selection
(a frame selection requester is opened for every animation loaded, and
the middle frame is used for anim-brushes).
- Target: Existing Icons (new icons are only created for files which
already have an icon), All Files (icons are created for all image, brush,
animation, anim-brush, palette and stencil files).
- Subdirectories: when this option is active, the script processes not
only the specified directory, but also all subdirectories.
- Work Directory: this is the directory in which the script stores
the temporary files from which it then copies the new icons. The
storage unit should have sufficient space to store at least the largest
file.
After the settings requester is closed, a path requester is used to
select the target directory.
The "Color Reduction" and "Dithering" program settings also affect the
quality of the reduced picture icons, because some pictures/brushes may be
color-reduced before being loaded.
In some circumstances, if the script runs while the user interacts
with the Workbench, the Workbench Update menu item must be selected in
order to visually update the icons in modified by this script.
When creating reduced picture icons, it is recommended to set the "Brush"
file type, so that all icons can have the proper ratio, even if a
matching video mode is unavailable.
When icons are created with the Picture type setting, the script uses
the current Workbench (number of colors, palette, ratio) as a reference
to create the icons. NewIcons icons, instead, are more independent from
the environment in which they were created, since only the aspect ratio
of the Workbench screen is checked before creating NewIcons.
Personal Paint's default icons, stored in "PPaint_Icons", can be freely
modified to change the default icon image, and the Tool Types and Default
Tool for each file type.
*/
/** DEU
Mit Hilfe dieses Skripts lassen sich Piktogramme für Bild- und
Animationsdateien unter dem angegebenen Pfad erstellen. Es ist jedoch nicht
möglich, für unbekannte Dateitypen (z. B. Texte oder ausführbare Programme)
Piktogramme zu erstellen. Die Bilder und Animationen selbst werden nicht
modifiziert, sondern ausschließich die Piktogrammdateien.
Im Dialogfenster "Einstellungen" lassen sich verschiedene Parameter zur
Festlegung bestimmter Eigenschaften für die Piktogramme einstellen:
- Typ: Standard (Standard-Piktogramme), Bild (Kleingrafiken von Bildern,
Pinseln, Animationen und Animationspinseln), NewIcons+Def (Kleingrafiken im
NewIcons-Format, wobei Standardbilder für das Standardpiktogramm verwendet
werden), NewIcons+Dot (Kleingrafiken im NewIcons-format, wobei ein kleines
"Dot"-Standardbild benutzt wird, um den Plattenspeicherbedarf zu verringern.
- Dateityp: Auto (Bilddateien werden, abhängig von ihrem Format, entweder
als Bilder oder Pinsel gespeichert), Bild (Bilddateien werden, sofern
möglich, als Bilder gespeichert), Pinsel (Bilddateien werden grundsätzlich
als Pinsel gespeichert).
- Breite: Maximale Breite der Bild-Piktogramme.
- Height: Maximale Höhe der Bild-Piktogramme.
- Piktogrammpalette: Standard (für Bild-Piktogramme werden die ersten und
letzten 4 Farben der Workbenchpalette verwendet, die normale 16
Farben-Palette für NewIcons), Beste (für Bild-Piktogramme werden alle 16
Workbench-Pens verwendet, für NewIcons die volle Bildpalette), Standard
(Grau) (wie Standard, allerdings werden nur Graustufen verwendet), Beste
(Grau) (wie Beste, allerdings werden nur Graustufen verwendet).
- Farbmittelwert: Wenn diese Option aktiviert ist, werden die
Piktogramm-Kleingrafiken auf der Grundlage eines besonderen Algorithmusses
erzeugt. Die hierdurch erzielte bessere Qualität wird allerdings mit einer
längeren Erstellungsdauer erkauft.
- Anim-Bild: Erstes (für Grafik-Piktogramme wird das erste Bild der
Animation oder des Animationspinsels verwendet), Mittleres (verwendet das
mittlere Einzelbild), Manuelle Auswahl (öffnet ein Auswahlfenster zur
Festlegung des gewünschten Bildes bei jeder geladenen Animation, bei
Animationspinseln wird automatisch das mittlere Bild verwendet).
- Ziel: Existierende Piktogramme (neue Piktogramme werden nur für Dateien
erstellt, die bereits über ein älteres Piktogramm verfügen) alle Dateien
(erzeugt für alle Bild-, Pinsel-, Animationspinsel-, Paletten- und
Maskendateien ein neues Piktogramm.
- Unterverzeichnis: Ist diese Option aktiviert, so werden nicht nur das
angegebene Verzeichnis, sondern auch alle darin enthaltenen
Unterverzeichnisse verarbeitet.
- Arbeitsverzeichnis: In diesem Verzeichnis speichert das Skript seine
temporären Daten zur Erzeugung der neuen Piktogramme. Das betreffende
Speichermedium sollte zumindest noch genügend Platz zum Speichern der
größten Datei aufweisen.
Nachdem das Einstellungen-Fenster geschlossen worden ist, muß in einem
Pfadauswahlfenster der gewünschte Zielpfad eingestellt werden.
Die Programmeinstellungen "Farbreduzierung" und "Fehlerverteilung" wirken
sich ebenfalls möglicherweise auf die Qualität der Piktogrammgrafiken aus,
da einige Bilder oder Pinsel evtl schon beim Laden eine Reduzierung ihrer
Farbanzahl erfahren.
Unter bestimmten Umständen (wenn dieses Skript läuft, während der Benutzer
mit der Workbench interagiert, muß im Workbench-Menü der Amiga Workbench der
Menübefehl "Bild neu aufbauen" ausgewählt werden, um die Darstellung der mit
diesem Skript erzeugten Piktogramme zu aktualisieren.
Bei der Erzeugung von Piktogramm-Kleingrafiken wird empfohlen, als Dateityp
"Pinsel" einzustellen. Dadurch wird gewährleistet, daß alle Piktogramme auch
dann mit einem korrekten Größenverhältnis dargestellt werden, wenn kein
passender Videomodus verfügbar ist.
Wenn die Piktogramme unter Verwendung des Dateityps "Bild" erzeugt werden,
werden die aktuellen Workbench-Einstellungen (Farbanzahl, Palette,
Höhen-/Breitenverhältnis als Referenz verwendet. NewIcons-Piktogramme
hingegen sind von der Umgebung, in der sie erzeugt wurden, sehr viel
unabhängiger, da hier lediglich das Höhen-/Breitenverhältnis der Workbench
überprüft wird.
Um das Erscheinungsbild des standardmäßig verwendeten Piktogramms zu
änd